﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ListProduct.ascx.cs" Inherits="Controls_ListProduct" %>
<div id="listmain">
<asp:Repeater ID="listProducts" runat="server">
    <ItemTemplate>
        <dl class="cell">
            <dd class="header">
                <a href='<%# Eval("ID", this.DetailUrl) %>' class="noline">
                    <img src='<%# Eval("FullImageUrl") %>' alt='<%# Eval("Title") %>' title='<%# Eval("Title") %>'
                        class="pimage"></a>
            </dd>
            <dd class="body">
                <div class="title font12">
                    <a href='<%# Eval("ID", this.DetailUrl) %>' title='<%# Eval("Title") %>'>
                        <%# Eval("Title") %></a>
                </div>
            </dd>
            <dd class="footer">
                <div class="price font12">
                        <%# Eval("UnitPrice","{0:c}") %>
                </div>
                <div class="savings font12">
                    Discount:<%# Eval("DiscountPercentage") %>%</div>
            </dd>
            <dd class="bars">
                <a href='<%# Eval("ID", this.AddToCartUrl) %>'  class="noline">
                <asp:Image ID="add_to_cart" runat="server" SkinID="to_cart" /></a></dd>
        </dl>
    </ItemTemplate>
</asp:Repeater>
</div>